#!/usr/bin/env ruby
require 'dbus'
bus = DBus::SessionBus.instance
xanguli_Service = bus.service('org.xanguli.Service')
obj = xanguli_Service.object('/Xanguli')
puts obj.introspect
xanguli = obj['org.xanguli.Xanguli']
controllerPath = xanguli.CreateController[0]
puts "Path: " + controllerPath
obj2 = xanguli_Service.object(controllerPath)
obj2.introspect
controller = obj2['org.xanguli.Controller']
widgetPath = controller.CreateWidget('button', '', [["text",['s', "test"]], ["command", ['s', "hey"]]])[0];
puts "widgetPath: " + widgetPath
controller.tkMainloop
